@extends('layout/layout')

@section('content')

	<div class="col-md-3 col-md-offset-4">
		
		@if (Session::has('flash_error'))
			<div class="alert alert-danger">E-mail ou senha inválidos.</div>
		@endif
		
		<form class="form-signin" role="form" action="{{ action('UsersController@handleLogin') }}" method="post">
	        <h2 class="form-signin-heading">Autenticar-se</h2>
	        <label for="inputEmail" class="sr-only">Email</label>
	        <input type="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus name="email">
	        <label for="inputPassword" class="sr-only">Password</label>
	        <input type="password" id="inputPassword" class="form-control" placeholder="Password" required name="password">
	        <div class="checkbox">
	          <label>
	            <input type="checkbox" value="remember-me" name="remember_token"> Remember me
	          </label>
	        </div>
	        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
	     </form>
	
	</div>

@stop